#ifndef MYTHREAD_H
#define MYTHREAD_H

#include <QThread>
#include <QSemaphore>
#include <iostream>
const int datasize = 100;
const int buffersize = 1;





class Mythread1 : public QThread {
    Q_OBJECT
public:
    explicit Mythread1(QObject *parent = nullptr);
protected:
    void run() override;
};

class Mythread2 : public QThread {
    Q_OBJECT
public:
    explicit Mythread2(QObject *parent = nullptr);
protected:
    void run() override;
};

#endif // MYTHREAD_H
